home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97b.txt
/
000091_icon-group-sender _Thu Oct 23 14:12:16 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id OAA07274
for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Thu, 23 Oct 1997 14:12:16 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA22536; Thu, 23 Oct 1997 14:12:15 -0700
To: icon-group@cs.arizona.edu
Date: Fri, 24 Oct 1997 01:46:21 +1000
From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
Message-Id: <Stuart.Robinson-2410970146220001@asianstmg-229.anu.edu.au>
Organization: ANU
Sender: icon-group-request@cs.arizona.edu
Subject: tabulating values
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Hello. I am trying to write up a program that takes a list of values and
counts their frequency of occurence (like a word count, but with
numbers). (I'll eventually make a histogram out of the results.) For
example, given the following output
1
2
1
3
10
100
I'd like the following output
value n
1 2
2 1
3 1
10 1
100 1
Is there something in the program library? I fished around but came up
with nothing.
Thanks in advance.
Cheers,
Stuart Robinson
--
Stuart Robinson <Stuart.Robinson@nospam.anu.edu.au>
The Australian National University
*TO REPLY, REMOVE "nospam." FROM E-MAIL ADDRESS GIVEN ABOVE